package data

import (
	"context"
	"kratos-shop/internal/biz"

	"github.com/go-kratos/kratos/v2/log"
)

type shopRepo struct {
	data *Data
	log  *log.Helper
}

// NewGreeterRepo .
func NewShopRepo(data *Data, logger log.Logger) biz.ShopRepo {
	return &shopRepo{
		data: data,
		log:  log.NewHelper(logger),
	}
}

func (r *shopRepo) ShopSave(ctx context.Context, g *biz.Shop) (*biz.Shop, error) {
	return g, nil
}

func (r *shopRepo) ShopUpdate(ctx context.Context, g *biz.Shop) (*biz.Shop, error) {
	return g, nil
}
